import { App } from 'vue';
import { registerEditorProvider } from '@ibiz-template/runtime';
import { AIParams } from './ai-params';
import { AIParamsProvider } from './ai-params.provider';

export default {
  install(v: App): void {
    v.component(AIParams.name!, AIParams);
    registerEditorProvider(
      'EDITOR_CUSTOMSTYLE_AI_PARAMS',
      () => new AIParamsProvider(),
    );
  },
};
